package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document("question")
public class Question implements Serializable {
    private ObjectId id;//
    private Integer qid;//问题id
    private String question;//问题
    private List<Option> options;//问题选项
    private Integer level;//枚举: 初级为0,中级为1,高级为2
}
